package com.lvyq.util;

import org.junit.Test;
import org.springframework.data.mongodb.core.aggregation.ArrayOperators;

import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Date;

/**
 * @program: weg
 * @description: 接收指令处理
 * @author: lvyq
 * @create: 2023-03-23 18:47
 **/
public class ReceContentUtils {


    /** 
    * @Description: 指令转换处理
    * @params:  * @param receContent
    * @return: 
    * @Author: lvyq
    * @Date: 2023/3/23 18:48
    */
    public static String changeContent(String receContent) {
        if (receContent.startsWith("天气查询#")){
            receContent="天气查询#";
        }
        if (receContent.startsWith("修改昵称#")){
            receContent="修改昵称#";
        }
        if (receContent.startsWith("查看#")){
            receContent="查看#";
        }
        if (receContent.startsWith("购买#")){
            receContent="购买#";
        }
        if (receContent.startsWith("购买$")){
            receContent="购买$";
        }
        if (receContent.startsWith("种植#")){
            receContent="种植#";
        }
        if (receContent.startsWith("施肥#")){
            receContent="施肥#";
        }

        if (receContent.startsWith("出售#")){
            receContent="出售#";
        }

        if (receContent.startsWith("快递查询#")){
            receContent="快递查询#";
        }

        if (receContent.startsWith("G#")){
            receContent="G#";
        }

        if (receContent.startsWith("饲养#")){
            receContent="饲养#";
        }
        if (receContent.startsWith("饲养$")){
            receContent="饲养$";
        }
        if (receContent.startsWith("赶产$")){
            receContent="赶产$";
        }
        if (receContent.startsWith("加锁$")){
            receContent="加锁$";
        }
        if (receContent.startsWith("解锁$")){
            receContent="解锁$";
        }
        if (receContent.startsWith("卖出$")){
            receContent="卖出$";
        }
        if (receContent.startsWith("收获$")){
            receContent="收获$";
        }
        return receContent;
    }

}
